/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.gt.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 下乡重点村信息Entity
 * @author zad
 * @version 2018-03-26
 */
public class GtCountry extends DataEntity<GtCountry> {
	
	private static final long serialVersionUID = 1L;
	private GtCountryInfo countryInfo;		// 所属下乡
	private String name;		// 村名
	
	public GtCountry() {
		super();
	}

	public GtCountry(String id){
		super(id);
	}


	public GtCountryInfo getCountryInfo() {
		return countryInfo;
	}

	public void setCountryInfo(GtCountryInfo countryInfo) {
		this.countryInfo = countryInfo;
	}

	@Length(min=1, max=64, message="村名长度必须介于 1 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}